import { getHttp } from "../get";

export function getHomeHotData_1(cityName){
  var result = getHttp("/api/homehot",{city:cityName})
  return result;
}

export function getHomeHotData_2(cityName){
  var result = getHttp("/api/homehot2",{city:cityName})
  return result;
}

export function getHomeIndexData(cityName,page){
  var result = getHttp("/api/homeindex?cityName="+cityName+'&page='+page)
  return result;
}

export function getRoommateData(cityName,page){
  var result = getHttp("/api/roommate?cityName="+cityName+'&page='+page)
  return result;
}

export function getCurrentPageData(keyWords,page){
  var result = getHttp("/api/currentpage?keyWords="+keyWords+'&page='+page)
  return result;
}

export function getHouseDetailData(id){
  var result = getHttp("/api/housedetail?id="+id);
  return result;
}


